﻿using System;
using System.Web.Mvc;
using MyPetShop.Service;

namespace Web.Areas.ItemSelect.Controllers
{
	/// <summary>
	/// Description of Items.
	/// </summary>
	public class ItemsController : Controller
	{
		public ActionResult Index()
		{
			ProductItemService productItemService = new ProductItemService();

            return View(productItemService.GetItemsByProduct("Koi"));
		}
		
		[HttpGet]
		public ActionResult Index(string Product)
		{
			ProductItemService productItemService = new ProductItemService();

            return View(productItemService.GetItemsByProduct(Product));
		}
	}
}